<CFIF ISDEFINED("FORM.btnGrpRoute")>
	<CFINCLUDE TEMPLATE="_savegrprouteMAPISMTP.cfm">
<CFELSE>
	<CFINCLUDE TEMPLATE="_saverouteMAPISMTP.cfm">
</CFIF>
<CFIF sWarn EQ "">
	<!--- clean and go --->
	<CFIF sMailRecipients IS NOT "" and client.profilename NEQ "">
		<CFMAIL FROM="#LCase(client.profilename)#"
				TO="#LCase(sMailRecipients)#"
				SUBJECT="#client.mailcontent# Message(Routing Form)"
				TYPE="HTML">

			<FONT color="Maroon" style="font: 21px Arial">#client.companyname#</FONT><br>
			<FONT color="Maroon" style="font: 20px Arial">iBOS/e WebShell 2005 Routing Form</FONT><br>
			<TABLE border="1" cellpadding="3" cellspacing="3" style="font: 13px Arial" width = 400>
			<TR><TD width=30%><strong>Form Group</strong></TD><TD width=70%>#GetForm.formgroup#</TD></TR>
			<TR><TD width=30%><strong>eForm</strong></TD><TD width=70%>#GetForm.description#</TD></TR>
			<TR><TD width=30%><strong>Sender</strong></TD><TD width=70%>#client.myname#</TD></TR>

			<CFIF #GetForm.ENABLEMAILAPPROV# NEQ "Y">
				<TR>
				<TD width=30%><strong>Message</strong></TD>
				<TD width=70%>You have a new work item.<BR>
				<A HREF="#client.domain#eforms/routing/route.cfm?autolog=yes&userid=#sIntendedRecipient#&companyid=#client.companycode#&id=#URLEncodedFormat(Encrypt(sRecordID, client.ek))#&lastandread=no">Click here to view.</A></TD>
				</TR>
			</CFIF>
			</TABLE>
			<BR>
			<CFIF #GetForm.ENABLEMAILAPPROV# NEQ "Y">
				Note: You need to sign on to your #client.mailcontent# account to open the item.<br><br>
			</CFIF>

			<CFIF (IsDefined("form.rdoIncludeForm") AND form.rdoIncludeForm IS "Y") OR
						   (#GetForm.ENABLEMAILAPPROV# EQ "Y")>
				<CFINCLUDE TEMPLATE="getformbody.cfm">
				<CFINCLUDE TEMPLATE="createbody.cfm">
				<CFIF GetFormDetails.RecordCount>
						<!--- fetch the routed record --->
						<CFQUERY NAME="GetEntry" DATASOURCE="#table_dsn#">
							SELECT *
							FROM #GetForm.TABLENAME_FK#
							WHERE
								(ROUTEID = '#sRouteID#')
						</CFQUERY>
						<CFINCLUDE TEMPLATE="createBodyDetails.cfm">
				</CFIF>
			</CFIF>
		</CFMAIL>
	</CFIF>
	<CFSET sMess = sMess & "Form forwarded to #sMsgRecipients#.<BR>">
</CFIF>
